package cn.wujiangbo.mapper;

import cn.wujiangbo.domain.Goods;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import java.util.Map;

public interface GoodsMapper {

     @Update("update t_goods set count=count-#{num} where id = #{id}")
     void updateNum(Map<String,Object> params);

     @Select("select * from t_goods where id = #{id}")
     Goods laodById(Long id);

}